package com.zyf.service;

import com.zyf.mapper.RoleMapper;
import com.zyf.pojo.Role;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class RoleServiceImpl implements RoleService {

    @Resource
    RoleMapper mapper;

    @Override
    public List<Role> findAll() {
        return mapper.findAll();
    }
}
